package com.hhkj.study.admin.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BizBaseEntity;
import com.ruoyi.common.valid.VAdd;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
*
* @author SERVER
* @since 2024-09-06
*/
@TableName(value = "x_user_follow")
@EqualsAndHashCode(callSuper = true)
@Data
public class UserFollow extends BizBaseEntity {

	/**
	 * 用户id,x_user表中id
	*/
	@NotNull(message = "用户id不能为空", groups = VAdd.class)
	private Long userId;
	/**
	 * 
	*/
	@NotBlank(message = "跟进内容不能为空", groups = VAdd.class)
	private String content;
	/**
	 * 跟进人
	*/
	private Long followUserId;
	/**
	 * 跟进时间
	*/
	@NotNull(message = "跟进时间不能为空", groups = VAdd.class)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date followTime;

}